package com.mls.fivedistrict.pojo;

import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 贡献值配置表
 * </p>
 *
 * @author Five Team
 * @since 2018-06-05
 */
@Data
@Accessors(chain = true)
@TableName("t_contribute_setting")
public class ContributeSetting extends Model<ContributeSetting> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 完成什么类型的操作奖励贡献值
     */
    private String type;
    /**
     * 积分ID
     */
    private Long integralId;
    /**
     * 奖励值
     */
    private BigDecimal rewardValue;
    @TableLogic
    private Boolean isDelete;
    private Boolean isEnable;
    private Date createDate;
    private Date updateDate;

    public Boolean getDelete() {
        return isDelete;
    }

    public void setDelete(Boolean delete) {
        isDelete = delete;
    }

    public Boolean getEnable() {
        return isEnable;
    }

    public void setEnable(Boolean enable) {
        isEnable = enable;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
